package cc.rengu.oltp.service.common.enums;

/**
 * 业务响应码枚举类
 *
 * @author 王成
 * @date 2017/6/27
 */
public enum OltpRpcdEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    PARAM_IS_EMPTY_OR_NULL("ES000001", "请求参数信息为为空"),
    TRANS_NOT_SUPPORT("ES000002", "不支持此交易"),
    GENERATE_SEQUENCE_ERROR("ES000003", "生成SEQUENCE序号失败"),
    CUSTOM_ANNO_METHOD_PROCESS_ERROR("ES000004", "自定义注解方法处理失败"),
    TRANS_FLOW_CTRL_PROCESS_ERROR("ES000005", "业务流量控制失败"),
    REGISTER_TRANS_LOG_ERROR("ES000006", "登记交易流水失败"),
    UPDATE_TRANS_LOG_ERROR("ES000007", "更新交易流水失败"),
    SMS_APPLY_OVER_LIMIT("ES000008", "短信申请次数超限"),
    GENERATE_SMS_CODE_ERROR("ES000009", "生成短信验证码失败"),
    VERIFY_SMS_CODE_ERROR("ES000010", "短信验证码校验失败"),
    CHANNEL_DISABLED("ES000011", "交易渠道或支付通道已停用"),
    RECOND_EMPTY_OR_NOT_FOUND("ES000012", "记录不存在或者数据为空"),
    XSS_ATTACK_REQUEST_DATA("ES000013", "接口请求内容存在XSS攻击特殊字符"),
    VERIFY_SMS_CODE_NO_EXIST_ERROR("ES000014", "短信验证码输入错误"),
    VERIFY_SMS_CODE_PHONE_ERROR("ES000015", "校验短信验证码手机号不一致"),
    VERIFY_SMS_CODE_TYPE_ERROR("ES000016", "短信验证码类型不一致"),
    VERIFY_SMS_CODE_NOT_MACHTED_ERROR("ES000017", "短信验证码不一致"),
    VERIFY_SMS_CODE_EXPIRY_ERROR("ES000018", "短信验证码已过期"),
    VERIFY_SMS_CODE_EXCEED_ERROR("ES000019", "短信验证码已超过验证次数"),
    VERIFY_SMS_CODE_NOT_SUPPORT_IGAS_ERROR("ES000020", "该短信验证码只支持外部生成短信验证码渠道(非IGAS)校验"),
    ORDER_STATUS_ABNORMAL_ERROR("ES000021", "订单状态异常"),
    ORDER_EXPIRED_ERROR("ES000022", "订单已过有效期"),
    PARAM_IS_NOT_VALIDITY("ES000023", "请求参数不合法"),
    RISK_TRANS("ES000095", "风险交易"),
    RSP_CODE_TRANSFER_ERROR("ES000096", "业务响应码转换异常"),
    CALL_BIZ_SERVICE_ERROR("ES000097", "服务调用失败"),
    BIZ_PROCESS_TIMEOUT("ES000098", "业务处理超时"),
    OLTP_PROCESS_ERROR("ES999999", "系统异常"),
    ;
    private String respCode;
    private String respDesc;

    OltpRpcdEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
